Now that we can play a single round, we can easily extend the program to play a complete game. To do this, we simply wrap the main program from the last exercise in another for loop, and replace all the limits in the inner loop with the variable from the outer loop.

This version still isn't quite finished, the score display isn't very useful in real life, the game starts very suddenly when you turn it on, and you need to reset the device to play again, but you can see how we're slowly progressing from our original routines that handled each component of the game, to making a basic single part of the game, to having an almost playable version.

This source for this is in Exercise 3.6, have a look at how complete it is now, and then see if you can finish it off before looking at the next section.